cmake_minimum_required(VERSION 3.25)
project(BSXlite)

# 定义接口库
add_library(${PROJECT_NAME} INTERFACE)

# 设置接口库的包含目录
target_include_directories(${PROJECT_NAME} INTERFACE include)

# 链接外部静态库 (libalgobsx.a)
find_library(ALGOBSX_LIB NAMES libalgobsx.a PATHS "lib")

if(ALGOBSX_LIB)
    target_link_libraries(${PROJECT_NAME} INTERFACE ${ALGOBSX_LIB})
else()
    message(FATAL_ERROR "libalgobsx.a not found")
endif()
